package com.pandora.credit.mongo.dao;

import com.pandora.credit.mongo.entity.MongoNews;

import java.util.List;

/**
 * @author developer
 */
public interface MongoNewsDao {

    /**
     * selectAllLimit
     * @param length length
     * @return MongoNewsList
     */
    public List<MongoNews> selectAllLimit(int length);

    /**
     * selectByIdLimit
     * @param id id
     * @param length length
     * @return MongoNewsList
     */
    public List<MongoNews> selectByIdLimit(long id, int length);

}
